<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>  
{*include file="template/admin_head_plugin.htm"*}
<script type="text/javascript">
$(function(){	
	var areas = "{*$smarty.get.areas*}";
	var id = "{*$smarty.get.id*}";	
	var areas_arr = areas.split(',');
	$.each(areas_arr,function(k,value){		
		$("#province_"+value).attr("checked", true);													
	});
	
	
	$("#add_item input",window.parent.document).eq(id).val("11323333")
	/*$(window.parent.document).find("#areas1").val("90000,100000");
	$(window.parent.document).find("#areas_info1").html("安徽、江苏、上海‘北京安徽、江苏、上海江苏、上海'北京安徽、江苏、上海'北京");
	
	my_close();*/
	
	
	$(".Group").click(function(){
		var areas = $(this).val();	
		var areas_arr = areas.split(',');		
		if($(this).is(':checked') == true){//如果全选中
			var  is_checked = true;
		}else{
			var  is_checked = false;
		}
		
		$.each(areas_arr,function(k,value){				
			$("#province_"+value).attr("checked", is_checked);													
		});
			
	});	
	$("#confirm").click(function(){
			var province_str = '';
			var province_val = '';
		   $(".J_Province:checked").each(function(){  
                 province_str += $(this).next().text()+',';
				 province_val += $(this).val()+',';
				 
           });
			province_str = 	province_str.substring(0,province_str.length-1);
			province_val = 	province_val.substring(0,province_val.length-1);
			
			
			$("#"+id,window.parent.document).next().val(province_val);
			$("#"+id,window.parent.document).next().next().text(province_str);
			
			my_close();
				
	});
	
})
</script>

</head>
<body style="background: none repeat scroll 0pt 0pt transparent;">
<table width="604" height="374"> 
    <tr>
      <td width="16%">
          <input id="Group_1" class="Group" type="checkbox" value="90000,100000,110000,120000,140000">
          <label for="Group_1" style="font-weight:bold;">华东</label>
      </td>
      <td width="12%">
          <input id="province_90000" class="J_Province" type="checkbox" value="90000">
          <label for="province_90000">上海</label>
      </td>
      <td width="16%">
          <input id="province_100000" class="J_Province" type="checkbox" value="100000">
          <label for="province_100000">江苏</label>
      </td>
       <td width="17%">
          <input id="province_110000" class="J_Province" type="checkbox" value="110000">
          <label for="province_110000">浙江</label>
      </td>
       <td width="11%">
          <input id="province_120000" class="J_Province" type="checkbox" value="120000">
          <label for="province_120000">安徽</label>
      </td>
       <td width="13%">
          <input id="province_140000" class="J_Province" type="checkbox" value="140000">
          <label for="province_140000">江西</label>
      </td>
      <td width="15%">&nbsp;</td>
    </tr>
      <tr>
      <td width="16%">
          <input id="Group_2" class="Group" type="checkbox" value="10000,20000,40000,150000,30000,50000">
          <label for="Group_2" style="font-weight:bold;">华北</label>
      </td>
      <td width="12%">
          <input id="province_10000" class="J_Province" type="checkbox" value="10000">
          <label for="province_10000">北京</label>
      </td>
      <td width="16%">
          <input id="province_20000" class="J_Province" type="checkbox" value="20000">
          <label for="province_20000">天津</label>
      </td>
       <td width="17%">
          <input id="province_40000" class="J_Province" type="checkbox" value="40000">
          <label for="province_40000">山西</label>
      </td>
       <td width="11%">
          <input id="province_150000" class="J_Province" type="checkbox" value="150000">
          <label for="province_150000">山东</label>
      </td>
       <td width="13%">
          <input id="province_30000" class="J_Province" type="checkbox" value="30000">
          <label for="province_30000">河北</label>
      </td>
       <td width="15%">
          <input id="province_50000" class="J_Province" type="checkbox" value="50000">
          <label for="province_50000">内蒙古</label>
      </td>
    </tr>
     <tr>
      <td width="16%">
          <input id="Group_3" class="Group" type="checkbox" value="180000,170000,160000">
          <label for="Group_3" style="font-weight:bold;">华中</label>
      </td>
      <td width="12%">
          <input id="province_180000" class="J_Province" type="checkbox" value="180000">
          <label for="province_180000">湖南</label>
      </td>
      <td width="16%">
          <input id="province_170000" class="J_Province" type="checkbox" value="170000">
          <label for="province_170000">湖北</label>
      </td>
       <td width="17%">
          <input id="province_160000" class="J_Province" type="checkbox" value="160000">
          <label for="province_160000">河南</label>
      </td>
      <td width="11%">&nbsp;</td>
      <td width="13%">&nbsp;</td>
      <td width="15%">&nbsp;</td>
    </tr>
    
     <tr>
      <td width="16%">
          <input id="Group_4" class="Group" type="checkbox" value="190000,200000,130000,210000">
          <label for="Group_4" style="font-weight:bold;">华南</label>
      </td>
      <td width="12%">
          <input id="province_190000" class="J_Province" type="checkbox" value="190000">
          <label for="province_190000">广东</label>
      </td>
      <td width="16%">
          <input id="province_200000" class="J_Province" type="checkbox" value="200000">
          <label for="province_200000">广西</label>
      </td>
       <td width="17%">
          <input id="province_130000" class="J_Province" type="checkbox" value="130000">
          <label for="province_130000">福建</label>
      </td>
       <td width="11%">
          <input id="province_210000" class="J_Province" type="checkbox" value="210000">
          <label for="province_210000">海南</label>
      </td>
      <td width="13%">&nbsp;</td>
      <td width="15%">&nbsp;</td>
    </tr>
     <tr>
      <td width="16%">
          <input id="Group_5" class="Group" type="checkbox" value="60000,70000,80000">
          <label for="Group_5" style="font-weight:bold;">东北</label>
      </td>
      <td width="12%">
          <input id="province_60000" class="J_Province" type="checkbox" value="60000">
          <label for="province_60000">辽宁</label>
      </td>
      <td width="16%">
          <input id="province_70000" class="J_Province" type="checkbox" value="70000">
          <label for="province_70000">吉林</label>
      </td>
       <td width="17%">
          <input id="province_80000" class="J_Province" type="checkbox" value="80000">
          <label for="province_80000">黑龙江</label>
      </td>
      <td width="11%">&nbsp;</td>
      <td width="13%">&nbsp;</td>
      <td width="15%">&nbsp;</td>
    </tr>
    <tr>
      <td width="16%">
          <input id="Group_6" class="Group" type="checkbox" value="270000,310000,280000,300000,290000">
          <label for="Group_6" style="font-weight:bold;">西北</label>
      </td>
      <td width="12%">
          <input id="province_270000" class="J_Province" type="checkbox" value="270000">
          <label for="province_270000">陕西</label>
      </td>
      <td width="16%">
          <input id="province_310000" class="J_Province" type="checkbox" value="310000">
          <label for="province_310000">新疆</label>
      </td>
       <td width="17%">
          <input id="province_280000" class="J_Province" type="checkbox" value="280000">
          <label for="province_280000">甘肃</label>
      </td>
       <td width="11%">
          <input id="province_300000" class="J_Province" type="checkbox" value="300000">
          <label for="province_300000">宁夏</label>
      </td>
       <td width="13%">
          <input id="province_290000" class="J_Province" type="checkbox" value="290000">
          <label for="province_290000">青海</label>
      </td>
      <td width="15%">&nbsp;</td>
    </tr>
    
     <tr>
      <td width="16%">
          <input id="Group_7" class="Group" type="checkbox" value="220000,250000,240000,260000,230000">
          <label for="Group_7" style="font-weight:bold;">西南</label>
      </td>
      <td width="12%">
          <input id="province_220000" class="J_Province" type="checkbox" value="220000">
          <label for="province_220000">重庆</label>
      </td>
      <td width="16%">
          <input id="province_250000" class="J_Province" type="checkbox" value="250000">
          <label for="province_250000">云南</label>
      </td>
       <td width="17%">
          <input id="province_240000" class="J_Province" type="checkbox" value="240000">
          <label for="province_240000">贵州</label>
      </td>
       <td width="11%">
          <input id="province_260000" class="J_Province" type="checkbox" value="260000">
          <label for="province_260000">西藏</label>
      </td>
       <td width="13%">
          <input id="province_230000" class="J_Province" type="checkbox" value="230000">
          <label for="province_230000">四川</label>
      </td>
      <td width="15%">&nbsp;</td>
    </tr>
    <tr>
      <td width="16%">
          <input id="Group_8" class="Group" type="checkbox" value="320000,330000,340000">
          <label for="Group_8" style="font-weight:bold;">港澳台</label>
      </td>
      <td width="12%">
          <input id="province_320000" class="J_Province" type="checkbox" value="320000">
          <label for="province_320000">香港</label>
      </td>
      <td width="16%">
          <input id="province_330000" class="J_Province" type="checkbox" value="330000">
          <label for="province_330000">澳门</label>
      </td>
       <td width="17%">
          <input id="province_340000" class="J_Province" type="checkbox" value="340000">
          <label for="province_340000">台湾</label>
      </td>
      <td width="11%">&nbsp;</td>
      <td width="13%">&nbsp;</td>
      <td width="15%">&nbsp;</td>
    </tr>
    <tr>
      <td colspan="7" align="center"><input type="button" id="confirm" value="确定" onclick="" class="myinput" /></td>
    </tr>      
</table>
</body>
</html>